﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using KPIS.GERP.GIMS.MODEL;
using KPIS.GERP.GIMS.DAL;
using KPIS.GERP.GIMS.DALFactory;
using KPIS.DBM;

namespace KPIS.GERP.GIMS.BLL
{
    public class PurchaseRequestCommitteeBLL
    {
        private static readonly PurchaseRequestCommitteeDAL dal = DataAccess.CreatePurchaseRequestCommittee();

        public IList<PurchaseRequestCommitteeInfo> GetPurchaseRequestCommittee()
        {
            return dal.GetPurchaseRequestCommittee();
        }

        public IList<PurchaseRequestCommitteeInfo> GetPurchaseRequestCommittee(string record_status)
        {
            return dal.GetPurchaseRequestCommittee(record_status);
        }

        public PurchaseRequestCommitteeInfo GetPurchaseRequestCommittee(int seq)
        {
            return dal.GetPurchaseRequestCommittee(seq);
        }

        public IList<PurchaseRequestCommitteeInfo> GetPurchaseRequestCommitteeWithParent(int pr_seq)
        {
            return dal.GetPurchaseRequestCommitteeWithParent(pr_seq);
        }

        public IList<PurchaseRequestCommitteeInfo> GetPurchaseRequestCommitteeFromBid(int pr_seq)
        {
            return dal.GetPurchaseRequestCommitteeFromBid(pr_seq);
        }

        public void Insert(IList<PurchaseRequestCommitteeInfo> infoList, int pr_seq)
        {
            dal.Insert(infoList, pr_seq);
        }

        public void Insert(IList<PurchaseRequestCommitteeInfo> infoList, int pr_seq, IDBManager dbManagerTrans)
        {
            dal.Insert(infoList, pr_seq, dbManagerTrans);
        }

        public void Update(PurchaseRequestCommitteeInfo info)
        {
            dal.Update(info);
        }

        public void Delete(PurchaseRequestCommitteeInfo info)
        {
            dal.Delete(info);
        }

        public void DeleteAll(IList<PurchaseRequestCommitteeInfo> infoList)
        {
            dal.DeleteAll(infoList);
        }

        public void DeleteFromDB(IList<PurchaseRequestCommitteeInfo> infoList)
        {
            dal.DeleteFromDB(infoList);
        }

        public void Restore(IList<PurchaseRequestCommitteeInfo> infoList)
        {
            dal.Restore(infoList);
        }

        public IList<PurchaseRequestCommitteeInfo> GetPurchaseOrderCommitteeHistory(int BidderSeq)
        {
            return dal.GetPurchaseOrderCommitteeHistory(BidderSeq);
        }
    }
}
